package com.rc.evcharger.service.rc;

import com.rc.evcharger.mapper.rc.RcMemberGainSettingMapper;
import com.rc.evcharger.model.rc.RcMemberGainSetting;
import com.rc.evcharger.model.rc.RcMemberGainSettingExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RcMemberGainSettingServiceImpl implements RcMemberGainSettingService {
    @Autowired
    private RcMemberGainSettingMapper rcMemberGainSettingMapper;

    @Override
    public RcMemberGainSettingMapper getMapper() {
        return rcMemberGainSettingMapper;
    }

    @Override
    public List<RcMemberGainSetting> listByDefault() {
        RcMemberGainSettingExample example = new RcMemberGainSettingExample();
        example.createCriteria().andStatusEqualTo("0");
        example.setOrderByClause("sort");
        return rcMemberGainSettingMapper.selectByExample(example);

    }
}
